package com.ys.service.impl;

import com.ys.domain.User;
import com.ys.mapper.UserDao;
import com.ys.service.UserService;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @描述:
 * @类名:
 * @作者: yangshuang
 * @创建时间: 2017/6/16 16:42
 * @版本: v1.0
 */
@Service
@Log4j
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class UserServiceImpl implements UserService {

    private final UserDao userDao;

    @Override
    public User getByUserName(String username) {
        return userDao.getByUserName(username);
    }
}
